function gmallComponent(url, vuecom) {
	if (!vuecom) vuecom = {};
	return function(resolve, reject) {
		sui.get(url, function(response) {
			var r = response;
			// DebugPrint({
			// 	response: response
			// });

			var rl = r.toLowerCase();
			var style = '';
			var styleIndexEnd = rl.lastIndexOf('</style>');
			var styleIndex = rl.lastIndexOf('<style', styleIndexEnd);
			if (styleIndexEnd !== -1 && styleIndex !== -1) {
				style = r.substring(styleIndex, styleIndexEnd);
				style = style.substr(style.indexOf('>') + 1);
				style = '<component scoped :is="\'style\'">' + style + '</component>';
			}

			// DebugPrint({
			// 	style: style
			// });

			var scriptIndexEnd = rl.lastIndexOf('<\/script>');
			var scriptIndex = rl.lastIndexOf('<script', scriptIndexEnd);
			if (scriptIndexEnd !== -1 && scriptIndex !== -1) {
				var script = r.substring(scriptIndex, scriptIndexEnd);
				script = script.substr(script.indexOf('>') + 1);
				script = '(' + script.replace(/export\s*=\s*\{/i, '{') + ')';
				var obj = eval(script);
				for (var a in obj) vuecom[a] = obj[a];
			}
			var template = r.substring(0, Math.min(styleIndex, scriptIndex));

			// DebugPrint({
			// 	template: template
			// });

			if (style) {
				var index = template.lastIndexOf('</');
				if (index !== -1) template = template.substr(0, index) + style + template.substr(index);
			}

			vuecom.template = template;

			// DebugPrint({
			// 	vuecom: vuecom
			// });
			//debugger
			DebugPrint("控件" + url + "加载成功")
			resolve(vuecom);

		}, function(e) {
			console.log("组件加载失败!")
		})



	};
}
